package com.example.lee.Controller;

import com.Domain.commonResult;
import com.Domain.payment;
import com.Service.PaymentfeignService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class OrderFeignController {

    @Resource
    private PaymentfeignService paymentfeignService;

    @GetMapping("consumer/payment/getFeign/{id}")
    public commonResult<payment> getPaymentById(@PathVariable("id") Long id){
        return paymentfeignService.getPaymentById(id);
    }
}
